//
// Created by jiaxv on 25-9-11.
//
#include <util/util.h>

bool is_memory_zero(const void *ptr, size_t len) {
    const unsigned char *p = (const unsigned char *)ptr;
    for (size_t i = 0; i < len; ++i) {
        if (p[i] != 0) {
            return false;
        }
    }
    return true;
}